/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#include "构建时间轴编辑节点.h"


#include <节点/动画/非线性动画条.h>





static void f_非编轨道节点_部件构建属性(C_属性栏* plane, S_结构对象指针 obj) {
	C_动画轨道节点* node = dynamic_cast<C_动画轨道节点*>(((C_节点面板*)obj)->m_NodeData);

	std::vector<S_Props> props;

	plane->f_构建属性部件(props);

}


static void f_几何矩形节点_3D视口更新(C_节点面板* node, S_Scene* scene) {
	C_动画轨道节点* 网格节点 = dynamic_cast<C_动画轨道节点*>(node->m_NodeData);

	
	//f_ob_add子物体(S_Core::g_当前独立显示物体, 0);
}


C_节点面板* f_节点构建_非编轨道(S_UI创建环境& ctx, S_设备环境* dev_ctx) {
	C_动画轨道节点* node = new C_动画轨道节点(*dev_ctx);

	C_节点面板* nodeplane = f_节点创建_UI面板构建(ctx, node, E_节点区类型::e_节点区_物体);
	nodeplane->m_属性面板参数构建 = f_非编轨道节点_部件构建属性;
	//nodeplane->m_3D视口更新 = f_几何矩形节点_3D视口更新;
	nodeplane->m_ICO = "scissors";

	return nodeplane;
}

void f_节点重置_非编轨道(C_节点面板* plane, C_节点基类* node) {
	f_节点重构_面板重构(plane, node, E_节点区类型::e_节点区_物体);
	f_节点重构_插座重构(plane, node, E_节点区类型::e_节点区_物体);

	plane->m_属性面板参数构建 = f_非编轨道节点_部件构建属性;
	plane->m_ICO = "scissors";
}











C_节点面板* f_节点构建_非线性图层(S_UI创建环境& ctx, S_设备环境* dev_ctx) {

    return nullptr;
}

void f_节点重置_非线性图层(C_节点面板* plane, C_节点基类* node) {

}









